﻿// ***********************************************************
// 常量数据集合
// Creator:yehui  Date:2013-02-06
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VipSys.SystemEntity
{
    public struct SystemData
    {
        /// <summary>
        /// 返回值常量
        /// </summary>
        public struct ReturnValue
        {
            /// <summary>
            /// 正常(0)
            /// </summary>
            public const short OK = 0;
            /// <summary>
            /// 参数错误(1)
            /// </summary>
            public const short PARAM_ERROR = 1;
            /// <summary>
            /// 数据库访问错误(2)
            /// </summary>
            public const short ACCESS_ERROR = 2;
            /// <summary>
            /// 接口内部异常(3)
            /// </summary>
            public const short EXCEPTION = 3;
            /// <summary>
            /// 资源未发现(4)
            /// </summary>
            public const short RES_NO_FOUND = 4;
            /// <summary>
            /// 资源已经存在(5)
            /// </summary>
            public const short RES_IS_EXIST = 5;
            /// <summary>
            /// 其他错误(9)
            /// </summary>
            public const short OTHER_ERROR = 9;
        }
       
        /// <summary>
        /// 数据库表名
        /// </summary>
        public struct DBTable
        {
            /// <summary>
            /// 会员信息表名
            /// </summary>
            public const string USER = "USERS";

            /// <summary>
            /// 组织机构表
            /// </summary>
            public const string ORGNIZATION = "ORGNIZATION";

            /// <summary>
            /// 考点表
            /// </summary>
            public const string ExamPlace = "ExamPlace";
            /// <summary>
            /// 日志表
            /// </summary>
            public const string Log = "Log";
            /// <summary>
            /// 业务人员信息表名
            /// </summary>
            public const string EMPLOYEE = "EMPLOYEE";

            /// <summary>
            /// 办公场所信息表名
            /// </summary>
            public const string OFFICE = "OFFICE";

            /// <summary>
            /// 工位图表
            /// </summary>
            public const string PicStation = "PIC_STATION";

            /// <summary>
            /// 办公场所工位布局表
            /// </summary>
            public const string Station = "STATION";
        }

        /// <summary>
        /// 数据库视图名
        /// </summary>
        public struct DBView
        { 
            
        }

        #region 数据库表结构
        /// <summary>
        /// 用户信息表结构
        /// </summary>
        public struct UserTable
        {
            /// <summary>
            /// 网报序号
            /// </summary>
            public const string ID = "ID";
            /// <summary>
            /// 用户姓名
            /// </summary>
            public const string Name = "Name";
            /// <summary>
            /// 性别
            /// </summary>
            public const string Gender = "Gender";
            /// <summary>
            /// 收缴余款所在地
            /// </summary>
            public const string PayPlace = "PayPlace";
            /// <summary>
            /// 所在学校
            /// </summary>
            public const string School = "School";
            /// <summary>
            /// 报考学校
            /// </summary>
            public const string ExamSchool = "ExamSchool";
            /// <summary>
            /// 报名序号
            /// </summary>
            public const string Sequence = "Sequences";
            /// <summary>
            /// 联系方式（作为登陆账号）
            /// </summary>
            public const string Tel = "Tel";
            /// <summary>
            /// 备注
            /// </summary>
            public const string Baks = "Baks";
            /// <summary>
            /// 业务员
            /// </summary>
            public const string EmployeeID = "EmployeeID";
            /// <summary>
            /// 密码
            /// </summary>
            public const string PassWord = "Pwd";
            /// <summary>
            /// 所交款
            /// </summary>
            public const string PayMoney = "PayMoney";
            /// <summary>
            /// 考点
            /// </summary>
            public const string ExamPlace = "ExamPlace";
            /// <summary>
            /// 房间号
            /// </summary>
            public const string Room = "Room";
            /// <summary>
            /// 酒店  
            /// </summary>
            public const string Hotel = "Hotel";
            /// <summary>
            /// 酒店房价
            /// </summary>
            public const string HotelExpense = "HotelExpense";
            /// <summary>
            /// 多退少补
            /// </summary>
            public const string MoneyBack = "MoneyBack";
            /// <summary>
            /// 意向同住人
            /// </summary>
            public const string ExceptRoomie = "ExceptRoomie";
            /// <summary>
            /// 考试类型
            /// </summary>
            public const string Template = "Template";
            /// <summary>
            /// 状态
            /// </summary>
            public const string Status = "Status";
        }
        /// <summary>
        /// 办公部门表结构
        /// </summary>
        public struct OrgnizationTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";
            /// <summary>
            /// 组织名称
            /// </summary>
            public const string OrgName = "OrgName";
            /// <summary>
            /// 父级
            /// </summary>
            public const string ParentID = "ParentID";
            /// <summary>
            /// 描述
            /// </summary>
            public const string Description = "Description";
            /// <summary>
            /// 级别类型
            /// </summary>
            public const string RoleType = "RoleType";
        }
        /// <summary>
        /// 办公部门表结构
        /// </summary>
        public struct LogTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "Id";
            /// <summary>
            /// 进程
            /// </summary>
            public const string Thread = "Thread";
            /// <summary>
            /// 级别
            /// </summary>
            public const string Level = "Level";
            /// <summary>
            /// 时间
            /// </summary>
            public const string Date = "Date";
            /// <summary>
            /// 角色
            /// </summary>
            public const string Logger = "Logger";
            /// <summary>
            /// 日志消息
            /// </summary>
            public const string Message = "Message";
        }

        /// <summary>
        /// 考点表结构
        /// </summary>
        public struct ExamPlaceTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";
            /// <summary>
            /// 考点名称
            /// </summary>
            public const string PlaceName = "PlaceName";
            /// <summary>
            /// 父级
            /// </summary>
            public const string ParentID = "ParentID";
            /// <summary>
            /// 描述
            /// </summary>
            public const string Description = "Description";
            /// <summary>
            /// 考点类型
            /// </summary>
            public const string PlaceType = "PlaceType";
        }

        /// <summary>
        /// 职员信息表结构
        /// </summary>
        public struct EmployeeTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";
            /// <summary>
            /// 账号
            /// </summary>
            public const string EmpNo = "EmpNo";
            /// <summary>
            /// 密码
            /// </summary>
            public const string PassWord = "Pwd";
            /// <summary>
            /// 姓名
            /// </summary>
            public const string Name = "Name";
            /// <summary>
            /// 角色级别
            /// </summary>
            public const string RoleType = "RoleType";
            /// <summary>
            /// 级别名称
            /// </summary>
            public const string OrgName = "OrgName";
            /// <summary>
            /// 联系电话
            /// </summary>
            public const string Tel = "Tel";
        }

        /// <summary>
        /// 办公场所表结构
        /// </summary>
        public struct OfficeTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";

            /// <summary>
            /// 办公场所名称
            /// </summary>
            public const string Name = "Name";

            /// <summary>
            /// 背景图
            /// </summary>
            public const string Picture = "Picture";

            /// <summary>
            /// 简介
            /// </summary>
            public const string Intro = "Intro";

            /// <summary>
            /// 状态
            /// </summary>
            public const string Status = "Status";
        }
        /// <summary>
        /// 工位图表
        /// </summary>
        public struct PicStationTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";
            /// <summary>
            /// 工位名称
            /// </summary>
            public const string Name = "Name";
            /// <summary>
            /// 工位空闲图
            /// </summary>
            public const string PicNormal = "Pic_Normal";

            /// <summary>
            /// 工位占用
            /// </summary>
            public const string PicOccupy = "Pic_Occupy";

            /// <summary>
            /// 工位预约
            /// </summary>
            public const string PicOrder = "Pic_Order";

            /// <summary>
            /// 图片宽度
            /// </summary>
            public const string Width = "Width";
            /// <summary>
            /// 图片高度
            /// </summary>
            public const string Height = "Height";
            /// <summary>
            /// 是否常用
            /// </summary>
            public const string Flag = "Flag";
        }

        /// <summary>
        /// 办公场所工位布局表
        /// </summary>
        public struct StationTable
        {
            /// <summary>
            /// 唯一标示
            /// </summary>
            public const string ID = "ID";

            /// <summary>
            /// 办公场所
            /// </summary>
            public const string OfficeID = "OfficeID";
            /// <summary>
            /// 部门
            /// </summary>
            public const string DepartmentID = "DepartmentID";
            /// <summary>
            /// 员工
            /// </summary>
            public const string EmployeeID = "EmployeeID";
            /// <summary>
            /// 工位形状图
            /// </summary>
            public const string PicStationID = "PicStationID";

            /// <summary>
            /// X坐标
            /// </summary>
            public const string X = "X";

            /// <summary>
            /// Y坐标
            /// </summary>
            public const string Y = "Y";

            /// <summary>
            /// W
            /// </summary>
            public const string W = "W";

            /// <summary>
            /// H
            /// </summary>
            public const string H = "H";
            /// <summary>
            /// 工位状态
            /// </summary>
            public const string Status = "Status";
        }
        #endregion

        #region 数据库视图结构
        
        #endregion

        #region 通过XML文件的系统配置


        public struct XmlConfigItem {
            public static string Menu = "root/menus/menu";
            public static string Roletype = "root/roletypes/roletype";
            public static string Placetype = "root/placetypes/placetype";
            public static string Gender = "root/genders/gender";
            public static string Template = "root/templates/template";
            public static string Account = "root/accounts/account";     
        }
        
        public struct XmlMenu {
            /// <summary>
            /// 菜单唯一标识
            /// </summary>
            public const string ID = "id";
            /// <summary>
            /// 菜单名称
            /// </summary>
            public const string TEXT = "text";
            /// <summary>
            /// 父菜单
            /// </summary>
            public const string PARENT_ID = "parentid";
            /// <summary>
            /// 菜单图标
            /// </summary>
            public const string ICONCLS = "iconCls";
            /// <summary>
            /// 权限
            /// </summary>
            public const string ROLE = "role";
            /// <summary>
            /// 功能页面
            /// </summary>
            public const string QTIP = "qtip";
            /// <summary>
            /// 是否是子菜单
            /// </summary>
            public const string LEAF = "leaf";
        }
        public struct XmlCombo
        {
            /// <summary>
            /// 值
            /// </summary>
            public const string Value = "value";
            /// <summary>
            /// 名
            /// </summary>
            public const string Name = "name";
        }
        public struct XmlAccount
        {
            /// <summary>
            /// 账号
            /// </summary>
            public const string NAME = "name";
            /// <summary>
            /// 密码
            /// </summary>
            public const string PASSWORD = "password";
           
        }
        #endregion

        /// <summary>
        /// 角色类型
        /// </summary>
        public struct RoleType {
            /// <summary>
            /// 会员
            /// </summary>
            public const string USER = "会员";
            /// <summary>
            /// 院校
            /// </summary>
            public const string SCHOOL = "高校";
            /// <summary>
            /// 城市
            /// </summary>
            public const string CITY = "城市";
            /// <summary>
            /// 省份
            /// </summary>
            public const string PROVINCE = "省份";
            /// <summary>
            /// 总公司
            /// </summary>
            public const string HEAD = "总公司";
            
        }


        /// <summary>
        /// 考点类型
        /// </summary>
        public struct PlaceType
        {
            
            /// <summary>
            /// 考点
            /// </summary>
            public const string SCHOOL = "考点";
            /// <summary>
            /// 城市
            /// </summary>
            public const string CITY = "城市";
            /// <summary>
            /// 省份
            /// </summary>
            public const string PROVINCE = "省份";
          
        }
        /// <summary>
        /// 登陆类型
        /// </summary>
        public struct LoginType
        {
            /// <summary>
            /// 工作人员
            /// </summary>
            public const string Employee = "0";
            /// <summary>
            /// 考生
            /// </summary>
            public const string User = "1";
        }
        /// <summary>
        /// 数据的逻辑删除所用的状态信息
        /// </summary>
        public struct Status
        {
            /// <summary>
            /// 已删除
            /// </summary>
            public const string DELETE = "0";
            /// <summary>
            /// 正常
            /// </summary>
            public const string NORMAL = "1";

        }
        /// <summary>
        /// 工位状态
        /// </summary>
        public struct StationStatus
        {
            /// <summary>
            /// 空闲
            /// </summary>
            public const string Normal = "1";
            /// <summary>
            /// 正常
            /// </summary>
            public const string Occupy = "2";
            /// <summary>
            /// 预定
            /// </summary>
            public const string Order = "3";

        }
        /// <summary>
        /// 系统各种目录
        /// </summary>
        public struct FilePath
        {
            /// <summary>
            /// 上传文件存放目录
            /// </summary>
            public const string UPLOAD = "upload";
        }
        /// <summary>
        /// 系统各种目录
        /// </summary>
        public struct ExtInfo
        {
            /// <summary>
            /// grid每页大小
            /// </summary>
            public const string PageSize = "16";
        }



    }

}
